/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Almacenamiento;
import java.util.List;
import java.util.ArrayList;
import Almacenamiento.Atributo;
import Almacenamiento.Relacion;
/**
 *
 * @author UNSAAC73
 */
public class Prueba {
    
    public static void main(String[] args)
    {
        Atributo a1 = new Atributo("Id",Integer.class);
        Atributo a2 = new Atributo("nombre",String.class);
        Atributo a3 = new Atributo("direccion",String.class);
        Atributo a4 = new Atributo("telefono",Long.class);
        Atributo a5 = new Atributo("Tipo Cliente",String.class);
                
        
        List<Atributo> at = new ArrayList<Atributo>();
        at.add(a1);
        at.add(a2);
        at.add(a3);
        at.add(a4);        
        
        Relacion R = new Relacion(at);
        System.out.println("ATRIBUTOS");
        System.out.println("==========");
        System.out.println(R.toString());
        System.out.println("");
        System.out.println("");
        
        R.adicionarAtributo(a5);        
        System.out.println("ADICIONANDO ATRIBUTO TIPO DE CLIENTE");
        System.out.println("=====================================");
        System.out.println(R.toString());
        System.out.println("");
        System.out.println("");
                
        R.Eliminar(a4);
        System.out.println("ELIMINANDO EL ATRIBUTO TELEFONO");
        System.out.println("===============================");
        System.out.println(R.toString());    
        
        
        

    }
}
